package com.example.harmonyosproject.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Favorite implements Serializable {
    private Integer id;
    private Integer userId;
    private Integer newsId;
    private LocalDateTime createTime;
    public Favorite(Integer userId, Integer newsId) {
        this.userId = userId;
        this.newsId = newsId;
    }
}
